package com.travel.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultCode {

    int  SUCCESS = 200;  //("0", "成功"),
    int  ERROR =-1;  //("-1", "系统异常"),
    int PARAM_ERROR = 1001;  //("1001", "参数异常"),
    int USER_EXIST_ERROR = 2001;  //("2001", "用户已存在"),
    int USER_ACCOUNT_ERROR = 2002;  //("2002", "账号或密码错误"),
    int USER_NOT_EXIST_ERROR = 2003;  //("2003", "未找到用户"),
    int ORDER_PAY_ERROR = 3001;  //("3001", "库存不足，下单失败"),
    int PARAM_LOST_ERROR = 2004;  //("2004", "参数缺失"),
    int PARAM_PASSWORD_ERROR = 2005;  //("2005", "原密码输入错误"),
    int DELETE_GOODS = 3002; //删除商品失败；
}
